home *** CD-ROM | disk | FTP | other *** search
/ Freelog 121 / FreelogMagazineJuilletAout2014-No121.iso / Outils / Adobe-Air / adobe-air_13.exe / [0] / setup.swf / scripts / _RuntimeInstaller_FlexInit.as < prev    next >
Text File  |  2014-03-27  |  4KB  |  67 lines

  1. package
  2. {
  3.    import flash.net.registerClassAlias;
  4.    import flash.system.Capabilities;
  5.    import mx.accessibility.ButtonAccImpl;
  6.    import mx.accessibility.ListAccImpl;
  7.    import mx.accessibility.ListBaseAccImpl;
  8.    import mx.accessibility.PanelAccImpl;
  9.    import mx.accessibility.UIComponentAccImpl;
  10.    import mx.collections.ArrayCollection;
  11.    import mx.collections.ArrayList;
  12.    import mx.core.IFlexModuleFactory;
  13.    import mx.core.mx_internal;
  14.    import mx.effects.EffectManager;
  15.    import mx.styles.StyleManager;
  16.    import mx.utils.ObjectProxy;
  17.    
  18.    public class _RuntimeInstaller_FlexInit
  19.    {
  20.        
  21.       
  22.       public function _RuntimeInstaller_FlexInit()
  23.       {
  24.          super();
  25.       }
  26.       
  27.       public static function init(param1:IFlexModuleFactory) : void
  28.       {
  29.          EffectManager.mx_internal::registerEffectTrigger("addedEffect","added");
  30.          EffectManager.mx_internal::registerEffectTrigger("completeEffect","complete");
  31.          EffectManager.mx_internal::registerEffectTrigger("creationCompleteEffect","creationComplete");
  32.          EffectManager.mx_internal::registerEffectTrigger("focusInEffect","focusIn");
  33.          EffectManager.mx_internal::registerEffectTrigger("focusOutEffect","focusOut");
  34.          EffectManager.mx_internal::registerEffectTrigger("hideEffect","hide");
  35.          EffectManager.mx_internal::registerEffectTrigger("itemsChangeEffect","itemsChange");
  36.          EffectManager.mx_internal::registerEffectTrigger("mouseDownEffect","mouseDown");
  37.          EffectManager.mx_internal::registerEffectTrigger("mouseUpEffect","mouseUp");
  38.          EffectManager.mx_internal::registerEffectTrigger("moveEffect","move");
  39.          EffectManager.mx_internal::registerEffectTrigger("removedEffect","removed");
  40.          EffectManager.mx_internal::registerEffectTrigger("resizeEffect","resize");
  41.          EffectManager.mx_internal::registerEffectTrigger("resizeEndEffect","resizeEnd");
  42.          EffectManager.mx_internal::registerEffectTrigger("resizeStartEffect","resizeStart");
  43.          EffectManager.mx_internal::registerEffectTrigger("rollOutEffect","rollOut");
  44.          EffectManager.mx_internal::registerEffectTrigger("rollOverEffect","rollOver");
  45.          EffectManager.mx_internal::registerEffectTrigger("showEffect","show");
  46.          if(Capabilities.hasAccessibility)
  47.          {
  48.             UIComponentAccImpl.enableAccessibility();
  49.             ListAccImpl.enableAccessibility();
  50.             ButtonAccImpl.enableAccessibility();
  51.             ListBaseAccImpl.enableAccessibility();
  52.             PanelAccImpl.enableAccessibility();
  53.          }
  54.          registerClassAlias("flex.messaging.io.ArrayCollection",ArrayCollection);
  55.          registerClassAlias("flex.messaging.io.ArrayList",ArrayList);
  56.          registerClassAlias("flex.messaging.io.ObjectProxy",ObjectProxy);
  57.          var _loc2_:Array = ["fontWeight","modalTransparencyBlur","rollOverColor","textRollOverColor","backgroundDisabledColor","textIndent","barColor","fontSize","kerning","footerColors","textAlign","fontStyle","modalTransparencyDuration","textSelectedColor","selectionColor","modalTransparency","fontGridFitType","selectionDisabledColor","disabledColor","fontAntiAliasType","modalTransparencyColor","alternatingItemColors","leading","dropShadowColor","themeColor","indicatorGap","letterSpacing","fontFamily","color","fontThickness","labelWidth","errorColor","headerColors","fontSharpness","textDecoration"];
  58.          var _loc3_:int = 0;
  59.          while(_loc3_ < _loc2_.length)
  60.          {
  61.             StyleManager.registerInheritingStyle(_loc2_[_loc3_]);
  62.             _loc3_++;
  63.          }
  64.       }
  65.    }
  66. }
  67.